package models

type IpInfo struct {
	Id             int64   `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT;comment:主键"`
	IP             string  `json:"ip" gorm:"column:ip;type:varchar(255);size:255;comment:ip"`
	Asn            string  `json:"asn" gorm:"column:asn;type:varchar(255);size:255;comment:ASN"`
	AsnType        string  `json:"asn_type" gorm:"column:asn_type;type:varchar(255);size:255;comment:asn_type"`
	State          int64   `json:"state" gorm:"column:state;type:int(20);comment:asn_type"`
	City           string  `json:"city" gorm:"column:city;type:varchar(255);size:255;comment:城市"`
	Country        string  `json:"country_code" gorm:"column:country_code;type:varchar(255);size:255;comment:国家编码" `
	CountryAppoint string  `json:"country_appoint" gorm:"column:country_appoint;type:varchar(255);size:255;comment:指定的国家编码" `
	Operator       string  `json:"operator" gorm:"column:operator;type:varchar(255);size:255;comment:测试Screen"`
	CreatedAt      int64   `json:"created_at" gorm:"column:created_at;type:int(20);comment:创建时间"`
	Delay          float64 `json:"delay" gorm:"column:delay;type:float;comment:延时"`
	Sn             int     `json:"sn" gorm:"column:sn;type:int(10);comment:机器编号"`
}

func (i *IpInfo) TableName() string {
	return "wt_task_ip_info"
}
